const express = require('express')
const router = express.Router()
const FoodController = require('../../controller/food')

router.post('/add', FoodController.add)
router.post('/edit/:id', FoodController.edit)
router.get('/delete/:id', FoodController.delete)
router.get('/check/:food_name', FoodController.check)
router.get('/find/:id', FoodController.find)
router.get('/findByPage', FoodController.findByPage)
router.get('/getTotalCount', FoodController.getTotalCount)
router.post('/uploadFoodImg', FoodController.uploadFoodImg)

module.exports = router